<?php

echo '<table border="1" width="50%" align="center" cellpadding="10">';

  for ($i = 1; $i <=15 ; $i++)
  {
    $color = ($i%2==0)?"yellow":"pink";
  echo '<tr>
    <td style="background-color:'.$color.'">
    Data '.$i.'
    </td>
  </tr>';

  }//end for

echo '</table>';
